package org.alanlau.api.feign;

import org.alanlau.api.feign.form.TestForm;
import org.alanlau.api.feign.vo.TestVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 测试
 *
 * @author alan
 * @version 1.0
 * @date 2020/9/14 0:31
 */
@RequestMapping("/user")
@FeignClient(contextId = "testClient", value = "feign-inherit-provide")
public interface TestClient {
    /**
     * 获取姓名
     * @author alan
     * @date 2020/9/14 0:32
     * @return  java.lang.String
     */
    @GetMapping("/name")
    String getName();

    /**
     * 获取基本嘻嘻
     * @author liukun
     * @date 2020/9/16 17:18
     * @param form   表单
     * @return  org.alanlau.api.feign.vo.TestVO
     */
    @GetMapping("/getInfo")
    TestVO getInfo(TestForm form);
}
